//
//  TTRSSITool.h
//  iBeaconDemo
//
//  Created by cry on 17/1/11.
//  Copyright © 2017年 eGova. All rights reserved.
//

#import <Foundation/Foundation.h>
@class TTReceiver;
@interface TTRSSITool : NSObject

/**
 * 根据rssi计算距离
 */
+ (double)getDistanceWithA:(NSInteger)a n:(double)n rssi:(NSInteger)rssi;

+ (NSMutableArray<TTReceiver *> *)fiterReceiver:(NSMutableArray<TTReceiver *> *)rs readings:(NSMutableDictionary<NSString *, NSNumber *> *)readings;

+ (double)getMinXWithReceivers:(NSMutableArray<TTReceiver *> *)receiver
                      readings:(NSMutableDictionary<NSString *, NSNumber *> *)readings
                         rdMap:(NSMutableDictionary<NSString *, NSNumber *> *)rdMap;

+ (double)getMinYWithReceivers:(NSMutableArray<TTReceiver *> *)receiver
                      readings:(NSMutableDictionary<NSString *, NSNumber *> *)readings
                         rdMap:(NSMutableDictionary<NSString *, NSNumber *> *)rdMap;

+ (double)getMaxXWithReceivers:(NSMutableArray<TTReceiver *> *)receiver
                      readings:(NSMutableDictionary<NSString *, NSNumber *> *)readings
                         rdMap:(NSMutableDictionary<NSString *, NSNumber *> *)rdMap;

+ (double)getMaxYWithReceivers:(NSMutableArray<TTReceiver *> *)receiver
                      readings:(NSMutableDictionary<NSString *, NSNumber *> *)readings
                         rdMap:(NSMutableDictionary<NSString *, NSNumber *> *)rdMap;

@end
